package com.qst.dao;

import com.qst.po.Lesson;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LessonMapper {
    public List<Lesson> getlessonsbypage(@Param("page") int page, @Param("limit") int limit);

    public int getTotalCount();

    public int addlesson(Lesson lesson);

    public List<Lesson> getalllessons();

    public Lesson getlessonsbyid(int id);

    public int updatelesson(Lesson lesson);

    public int deletelesson(int id);
}
